<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<script type="text/javascript" src="<%=path %>/js/plugins/ajaxfileupload.js"></script>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">修改敏感词</h3>
	</div>
	<form id="sensitiveWord_update_form" class="form-horizontal m-t" action="javascript:updateSensitiveWord()">
		<input type="hidden" name="wordId" value="${sensitiveWordVO.wordId}">
		<c:choose>
			<c:when test="${empty sensitiveWordVO.wordType}">
			<input type="hidden" name="wordType" value="1">
			</c:when>
			<c:otherwise>
			<input type="hidden" name="wordType" value="${sensitiveWordVO.wordType}">
			</c:otherwise>
		</c:choose>
		
		<div class="form-group">
			<label class="col-sm-2 control-label">敏感词:</label>
			<div class="col-sm-9">
				<input type="text" class="form-control" name="sensitiveWord" value="${sensitiveWordVO.sensitiveWord}">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-9 col-sm-offset-1">
				<button type="submit" class="btn btn-primary" id="sensitiveWord_update_btn">确定</button>
			</div>
		</div>
	</form>
	
	<div class="panel-heading">
		<h3 class="panel-title">敏感词检查</h3>
	</div>
	<form id="sensitiveWord_check_form" class="form-horizontal m-t" action="javascript:checkSensitiveWord()">
		<div class="form-group">
			<label class="col-sm-2 control-label">要检查的文本:</label>
			<div class="col-sm-9">
				<textarea name="checkWord" rows="3" cols="80"></textarea>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-9 col-sm-offset-1">
				<button type="submit" class="btn btn-primary" id="sensitiveWord_check_btn">检查</button>
			</div>
		</div>
	</form>
</div>